package com.party.core.dao.read.copartner;

import com.party.common.paging.Page;
import com.party.core.dao.read.BaseReadDao;
import com.party.core.model.copartner.CopartnerLevel;
import com.party.core.model.copartner.CopartnerLevelInput;

import com.party.core.model.copartner.CopartnerLevelOutput;
import org.apache.ibatis.annotations.Param;

import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;


/**
 * @Author: Administrator.
 * @Description: 目标与合伙人关联表(二级)
 * @Date:Created in 2010/10/11 0023 下午 15:38.
 */
@Repository
public interface CopartnerLevelReadDao extends BaseReadDao<CopartnerLevel> {
    List<CopartnerLevel> getCopartnerLevelByMultiple(CopartnerLevel copartnerLevel);

    CopartnerLevel findByMemberId(@Param("memberId") String memberId);

    List<CopartnerLevelOutput> getJuniorPartners(CopartnerLevelInput copartnerLevelInput, Page page);

    Integer getJuniorPartnersTotal(CopartnerLevelInput copartnerLevelInput);

    Double getPromoteOrLowerToMoney(CopartnerLevelInput copartnerLevelInput);

    List<CopartnerLevelOutput> copartnerList(@Param("params") Map<String,Object> params, Page page);
}
